#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import sys
import os

# 添加项目根目录到路径，以便导入csv_data_fusion模块
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
from csv_data_fusion import CSVDataFusion

# 创建测试实例
fusion = CSVDataFusion()

# 测试用例
test_cases = [
    "张三 110101199001011234 13800138000",
    "姓名：周八，身份证号码：110101199001011234，手机号码：13800138000",
    "张小三13800138000110101199001011234",
    "钱八"
]

# 执行测试
print("开始测试parse_companion_info函数...")
print("=" * 50)
for i, test_case in enumerate(test_cases):
    result = fusion.parse_companion_info(test_case)
    print(f"测试用例 {i+1}:")
    print(f"  输入: {test_case}")
    print(f"  输出: {result}")
    print("-" * 50)

print("测试完成。")